// compose/ curry
const { compose, curry } = require('folktale/core/lambda')
const { toUpper, first } = require('lodash/fp')
let f = curry(2, (x, y) => x + y)
console.log(f(1, 2)) // 3
console.log(f(1)(2)) // 3

// lodash 用 flowRight
let f = compose(toUpper, first)
// console.log(f(['one', 'two'])) // ONE
